package com.chh.pdapp.acceptprize.query;


import com.chh.pdapp.assembler.AcceptPrizeAssembler;
import com.chh.pdclient.dto.data.AcceptPrizeVO;
import com.chh.pddomain.acceptprize.AcceptPrizeEntity;
import com.chh.pddomain.gateway.AcceptPrizeGateway;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@Slf4j
@AllArgsConstructor
public class AcceptPrizeOneExe {

    private final AcceptPrizeGateway acceptPrizeGateway;


    public AcceptPrizeVO execute(Long recordId) {
        AcceptPrizeEntity entity = acceptPrizeGateway.one(recordId);

        return AcceptPrizeAssembler.toAcceptPrizeVO(entity);
    }
}
